//
//  UIDevice+BaseFramework.h
//  LotteryClient
//
//  Created by Suny on 14-7-5.
//  Copyright (c) 2014年 CTTC. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIDevice (BaseFramework)

@end

typedef NS_ENUM(NSInteger, SNDeviceModel)
{
    kSNDeviceUnknown,
    kSNDeviceUnknowniPod,
    kSNDeviceUnknowniPhone,
    kSNDeviceUnknowniPad,
    
    kSNDeviceSimulator,
    
    kSNDeviceiPodTouch1 = 1000,
    kSNDeviceiPodTouch2,
    kSNDeviceiPodTouch3,
    kSNDeviceiPodTouch4,
    kSNDeviceiPodTouch5,
    
    kSNDeviceiPhone1 = 2000,
    kSNDeviceiPhone3GS,
    kSNDeviceiPhone4,
    kSNDeviceiPhone4S,
    kSNDeviceiPhone5,
    kSNDeviceiPhone5S,
    
    kSNDeviceiPad1 = 3000,
    kSNDeviceiPad2,
    kSNDeviceiPad3,
    kSNDeviceiPad4,
    kSNDeviceiPadMini,
    kSNDeviceiPadAir,
    kSNDeviceiPadMini2,
};


@interface UIDevice (Helpers)

- (BOOL)isRetinaDisplay;
- (BOOL)is4InchRetinaDisplay;
- (BOOL)isWIFIConnected;
- (BOOL)isHaveNetWork;

+ (NSString *) platform;
+ (NSString *) getReturnPlat:(NSString *)platform;
+ (NSString *) getStandardPlat;
+ (BOOL)isDeviceOrientationLandscape;

- (int)sn_majorVersion;
- (BOOL)sn_isIOS5OrEarlier;
- (BOOL)sn_isIOS6OrEarlier;
- (BOOL)sn_isIOS7OrLater;

- (BOOL)sn_shouldEnableTabBarBlurEffect;

- (NSString *) sn_deviceModelString;
- (SNDeviceModel) sn_deviceModel;
@end